public class while02 {
    public static void main(String[] args) {
        long a=1234321;
        long t=a;
        long b=0;
        while (a>0){
            long ge =a%10;
            a=a/10;
            b=b*10+ge;
        }
        System.out.println(b);
        System.out.println(b==t);
    }
}
